#include "Type.h"

void Type::showType()
	{
		cout << "Maintype: " << maintype << endl;
		cout << "Subtype: " << subtype << endl;
		cout << "---------------------------------------------------" << endl;
	}

bool Type::equalMaintype(Type _type) { return (this->getMaintype() == _type.getMaintype()) ; }

bool Type::equalSubtype(Type _type) { return (this->getSubtype() == _type.getSubtype()) ; }

bool Type::operator==(const Type & type2) const {
	return ( (this->getMaintype() == type2.getMaintype())
			 && (this->getSubtype() == type2.getSubtype()));
}

bool Type::operator <(const Type & type2) const {
	return ((this->getMaintype() < type2.getMaintype())
			 && (this->getSubtype() < type2.getSubtype()));
}
